/*
 * Copyright 2009 Bart Van Dosselaer
 * 
 * Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 * http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an &quot;AS IS&quot; BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.intrepid.oss.hudson.core.domain;

import java.util.HashSet;
import java.util.Set;

/**
 * @author Bart Van Dosselaer
 */
public class Feed {

	private final FeedEntry feedInformation;
	private final Set<FeedEntry> entries;
	
	public Feed(final FeedEntry feedInformation) {
		this(feedInformation, new HashSet<FeedEntry>());
	}
	
	public Feed(final FeedEntry feedInformation, final Set<FeedEntry> entries) {
		super();
		this.feedInformation = feedInformation;
		this.entries = entries;
	}

	/**
	 * @return the entries
	 */
	public Set<FeedEntry> getEntries() {
		return this.entries;
	}

	/**
	 * @return the id
	 */
	public String getId() {
		return this.feedInformation.getId();
	}

	/**
	 * @return the title
	 */
	public String getTitle() {
		return this.feedInformation.getTitle();
	}

	/**
	 * @return the link
	 */
	public String getLink() {
		return this.feedInformation.getLink();
	}

	
}
